package client;


import ui.INickPanel;
import ui.IReadingPanel;

public class MultipleController {

	

	public void multipleController(String read, INickPanel nickPanel,IReadingPanel readingPanel){
		
		if(read.substring(0,1).equalsIgnoreCase("+")){
			
			nickPanel.addNick(read.substring(1,read.length()));
			return;
				
		} else if(read.substring(0,2).equalsIgnoreCase("-+")){
				
			nickPanel.rmNick(read.substring(2,read.length()));
			return;
			
		}
		
		readingPanel.append(read);
		

	}

}
